package com.yuanbao.controller;

import com.yuanbao.base.response.Message;
import com.yuanbao.common.controller.BaseController;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/user")
@Slf4j
@CrossOrigin
public class UserController extends BaseController {

    @Value("${huawei.address}")
    private String tt;

    @PostMapping("/info")
    Message<String> info(@RequestParam("param") String param) {
        log.debug("user info");
        return new Message<>("Response from User Service, param:{}" + param);
    }
}
